#ifndef _SCALE_SIZE_PASS_
#define _SCALE_SIZE_PASS_

#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/UnityInput.hlsl"

struct Attributes
{
    float3 positionOS     : POSITION;
    float3 normalOS       : NORMAL;
    float2 texcoord       : TEXCOORD0;

};

struct Varyings
{
    float4 positionCS      : SV_POSITION;
    float4 color           : COLOR;
};

Varyings vert(Attributes IN)
{
    Varyings OUT = (Varyings)0; // This struct Init must be very careful. you must assign the right value;
    float3 normalWS = TransformObjectToWorldNormal(IN.normalOS, true);
    float3 positionWS = (TransformObjectToWorld(IN.positionOS)) + normalWS * _Offrate;


    OUT.positionCS = TransformWorldToHClip(positionWS);
    OUT.color = float4((normalWS * 0.5 + 0.5), 1);
    return OUT;
}

float4 frag(Varyings IN) : SV_TARGET
{
    float4 OUT;

    OUT = IN.color;
    return OUT;
}


#endif